package com.cloudbroker.bcs.csvc.credits.service.impl;

import com.cloudbroker.bcs.csvc.credits.api.vo.back.IntegralBackVO;
import com.cloudbroker.bcs.csvc.credits.api.vo.back.IntegralQueryBackVO;
import com.cloudbroker.bcs.csvc.credits.service.TKOpenService;
import com.cloudbroker.bcs.csvc.credits.util.TKOpenServiceUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by lili19289 on 2016/12/1.
 */
@Service
public class TKOpenServiceImpl implements TKOpenService {
    @Override
    public IntegralBackVO func_add_integral(Map<String, String> paramMap) {
        return TKOpenServiceUtil.requestMethod(TKOpenServiceUtil.INTEGRAL_ADD ,paramMap,IntegralBackVO.class);
    }

    @Override
    public IntegralBackVO func_consum_integral(Map<String, String> paramMap) {
        return TKOpenServiceUtil.requestMethod(TKOpenServiceUtil.INTEGRAL_CONSUM ,paramMap,IntegralBackVO.class);

    }

    @Override
    public IntegralQueryBackVO func_query_integral(Map<String, String> paramMap) {
        return TKOpenServiceUtil.requestMethod(TKOpenServiceUtil.INTEGRAL_QUERY ,paramMap, IntegralQueryBackVO.class);

    }
}
